package com.woniuxy.service.impl;

import java.util.List;

import com.woniuxy.DTO.AlgsDisinfectRecordDTO;
import com.woniuxy.vo.AlgsDisinfectRecordVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.woniuxy.mapper.AlgsDisinfectionRecordMapper;
import com.woniuxy.domain.AlgsDisinfectionRecord;
import com.woniuxy.service.IAlgsDisinfectionRecordService;

import javax.annotation.Resource;

/**
 * 消毒记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-16
 */
@Service
public class AlgsDisinfectionRecordServiceImpl implements IAlgsDisinfectionRecordService 
{
@Resource
    private AlgsDisinfectionRecordMapper algsDisinfectionRecordMapper;

    /**
     * 查询消毒记录
     * 
     * @param disinfectionRecordId 消毒记录主键
     * @return 消毒记录
     */
    @Override
    public AlgsDisinfectionRecord selectAlgsDisinfectionRecordByDisinfectionRecordId(Long disinfectionRecordId)
    {
        return algsDisinfectionRecordMapper.selectAlgsDisinfectionRecordByDisinfectionRecordId(disinfectionRecordId);
    }

    /**
     * 查询消毒记录列表
     * 
     * @param algsDisinfectionRecord 消毒记录
     * @return 消毒记录
     */
    @Override
    public List<AlgsDisinfectionRecord> selectAlgsDisinfectionRecordList(AlgsDisinfectionRecord algsDisinfectionRecord)
    {
        return algsDisinfectionRecordMapper.selectAlgsDisinfectionRecordList(algsDisinfectionRecord);
    }

    /**
     * 新增消毒记录
     * 
     * @param algsDisinfectionRecord 消毒记录
     * @return 结果
     */
    @Override
    public int insertAlgsDisinfectionRecord(AlgsDisinfectionRecord algsDisinfectionRecord)
    {
        return algsDisinfectionRecordMapper.insertAlgsDisinfectionRecord(algsDisinfectionRecord);
    }

    /**
     * 修改消毒记录
     * 
     * @param algsDisinfectionRecord 消毒记录
     * @return 结果
     */
    @Override
    public int updateAlgsDisinfectionRecord(AlgsDisinfectionRecord algsDisinfectionRecord)
    {
        return algsDisinfectionRecordMapper.updateAlgsDisinfectionRecord(algsDisinfectionRecord);
    }

    /**
     * 批量删除消毒记录
     * 
     * @param disinfectionRecordIds 需要删除的消毒记录主键
     * @return 结果
     */
    @Override
    public int deleteAlgsDisinfectionRecordByDisinfectionRecordIds(Long[] disinfectionRecordIds)
    {
        return algsDisinfectionRecordMapper.deleteAlgsDisinfectionRecordByDisinfectionRecordIds(disinfectionRecordIds);
    }

    /**
     * 删除消毒记录信息
     * 
     * @param disinfectionRecordId 消毒记录主键
     * @return 结果
     */
    @Override
    public int deleteAlgsDisinfectionRecordByDisinfectionRecordId(Long disinfectionRecordId)
    {
        return algsDisinfectionRecordMapper.deleteAlgsDisinfectionRecordByDisinfectionRecordId(disinfectionRecordId);
    }

    @Override
    public List<AlgsDisinfectRecordVO> queryAlgsDisinfectionRecordAndTypeMsgAndStaffName(AlgsDisinfectRecordDTO algsDisinfectRecordDTO) {
        return algsDisinfectionRecordMapper.queryAlgsDisinfectionRecordAndTypeMsgAndStaffName(algsDisinfectRecordDTO);
    }

    @Override
    public List<AlgsDisinfectRecordVO> queryAlgsDisinfectionRecordAndTypeMsgAndStaffNameManager(AlgsDisinfectRecordDTO algsDisinfectRecordDTO) {
        return algsDisinfectionRecordMapper.queryAlgsDisinfectionRecordAndTypeMsgAndStaffNameManager(algsDisinfectRecordDTO);
    }
}
